Google News
logo
jQuery - Interview Questions
What is the use of delay() method in JQuery?
The jQuery delay() method is used to delay the execution of functions in the queue. It is the best method to make a delay between the queued jQuery effects. The jQUery delay () method sets a timer to delay the execution of the next item in the queue.
 
Syntax :

$(selector).delay (speed, queueName) ​

 


speed : It is an optional parameter. It specifies the speed of the delay. Its possible values are slow, fast and milliseconds.
 
queueName : It is also an optional parameter. It specifies the name of the queue. Its default value is "fx" the standard queue effect.
Advertisement